package com.qd.common.panda.domain.entity.stroke;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 构件微信支付订单参数给前端小程序
 * "timeStamp": "1571725405",
 * "package": "prepay_id=wx22142325751741afa0144bbf1240569900",
 * "paySign": "CCD60C32B7D0029CED4EB3663A266505",
 * "orderId": "8dc2cdc1-4d60-4f50-9138-661514267b19",
 * "appId": "wx33fef088e530dcfe",
 * "thirdPartyOrder": "97f4684e-6788-498f-aa75-c37b6e180f7a",
 * "signType": "MD5",
 * "nonceStr": "1571725405788UAxqXBrGO8DOEz5lS18"
 * @author sjk
 */
@Data
@Accessors(chain = true)
@ToString
public class PayParamDTO {
    private String timeStamp;
    @JsonProperty("package")
    private String prepayId;
    private String paySign;
    private String appId;
    private String thirdPartyOrder;
    private String signType;
    private String nonceStr;
    private String payAmount;

    public void freeData() {
        this.timeStamp = null;
        this.prepayId = null;
        this.paySign = null;
        this.appId = null;
        this.thirdPartyOrder = null;
        this.signType = null;
        this.nonceStr = null;
        this.payAmount = null;
    }
}